import request from "../axios.js";
import { baseUrl } from "@/config/env";

// 根据用户编号获取用户信息
export function getUserInfoByUserNum(params) {
  return request({
    url: baseUrl + "/SysUser/getUserInfoByUserNum",
    method: "get",
    params,
  });
}

// 根据id修改用户信息
export function updateUserById(data) {
  return request({
    url: baseUrl + "/SysUser/updateUserById",
    method: "put",
    data,
  });
}

// 修改密码
export function personalPassword(data) {
  return request({
    url: baseUrl + "/SysUser/personalPassword",
    method: "put",
    data,
  });
}

// 获取部门下拉框
export function departmentList() {
  return request({
    url: baseUrl + "/backstageCmsDepartment/departmentList",
    method: "get",
  });
}
